<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TFileBrowserView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_file_browser_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TFileBrowserView类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TFileBrowserView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_file_browser_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a61ae2c5ccf854673b9aee29b8fc9327c"><td class="memItemLeft" align="right" valign="top"><a id="a61ae2c5ccf854673b9aee29b8fc9327c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TFileBrowserView</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a61ae2c5ccf854673b9aee29b8fc9327c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80ec786d60d999f0f3ed162aff7e0652"><td class="memItemLeft" align="right" valign="top"><a id="a80ec786d60d999f0f3ed162aff7e0652"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TFileBrowserView</b> (const file_browser_view_t *nativeObj)</td></tr>
<tr class="separator:a80ec786d60d999f0f3ed162aff7e0652"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90d187486f99ed784c28508028f5b1bc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a90d187486f99ed784c28508028f5b1bc">SetInitDir</a> (const char *init_dir)</td></tr>
<tr class="separator:a90d187486f99ed784c28508028f5b1bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf91400cfd209ea48aad1980ddef24fb"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#adf91400cfd209ea48aad1980ddef24fb">SetIgnoreHiddenFiles</a> (bool ignore_hidden_files)</td></tr>
<tr class="separator:adf91400cfd209ea48aad1980ddef24fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7781f1882bd56bbd0f6bfe239758cce3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a7781f1882bd56bbd0f6bfe239758cce3">SetSortAscending</a> (bool sort_ascending)</td></tr>
<tr class="separator:a7781f1882bd56bbd0f6bfe239758cce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f1fd3fa83864863e27fc96532665711"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a6f1fd3fa83864863e27fc96532665711">SetShowCheckButton</a> (bool show_check_button)</td></tr>
<tr class="separator:a6f1fd3fa83864863e27fc96532665711"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba1a400fab8dbfad03a8e528b38fb14"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#aeba1a400fab8dbfad03a8e528b38fb14">SetSortBy</a> (const char *sort_by)</td></tr>
<tr class="separator:aeba1a400fab8dbfad03a8e528b38fb14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa03787dca05899121b10f66777e4b042"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#aa03787dca05899121b10f66777e4b042">GetCwd</a> ()</td></tr>
<tr class="separator:aa03787dca05899121b10f66777e4b042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45768c7bf22e185896ec874102364c84"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a45768c7bf22e185896ec874102364c84">CreateDir</a> (const char *name)</td></tr>
<tr class="separator:a45768c7bf22e185896ec874102364c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab02f1afd2a0cf3badba9cbc80bd5d2c4"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#ab02f1afd2a0cf3badba9cbc80bd5d2c4">CreateFile</a> (const char *name, const char *data, uint32_t size)</td></tr>
<tr class="separator:ab02f1afd2a0cf3badba9cbc80bd5d2c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad76f7e533834b4760486b6079156f11d"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#ad76f7e533834b4760486b6079156f11d">GetInitDir</a> () const</td></tr>
<tr class="separator:ad76f7e533834b4760486b6079156f11d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37420c4fb0868aab3b5a52083810cb4f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a37420c4fb0868aab3b5a52083810cb4f">GetIgnoreHiddenFiles</a> () const</td></tr>
<tr class="separator:a37420c4fb0868aab3b5a52083810cb4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78caecfce2f36376f3f0c32a6d955a46"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a78caecfce2f36376f3f0c32a6d955a46">GetSortAscending</a> () const</td></tr>
<tr class="separator:a78caecfce2f36376f3f0c32a6d955a46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e3be8209ebecb627b29fad0a08b3333"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a6e3be8209ebecb627b29fad0a08b3333">GetShowCheckButton</a> () const</td></tr>
<tr class="separator:a6e3be8209ebecb627b29fad0a08b3333"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae779d729f721ecbb669e2fa586cf8e30"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#ae779d729f721ecbb669e2fa586cf8e30">GetSortBy</a> () const</td></tr>
<tr class="separator:ae779d729f721ecbb669e2fa586cf8e30"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a2f1bf3ec44acb8d64a7d32015c251497"><td class="memItemLeft" align="right" valign="top"><a id="a2f1bf3ec44acb8d64a7d32015c251497"></a>
static <a class="el" href="class_t_file_browser_view.html">TFileBrowserView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a2f1bf3ec44acb8d64a7d32015c251497"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f94c0b068922e310cadb73d9fea57e1"><td class="memItemLeft" align="right" valign="top"><a id="a1f94c0b068922e310cadb73d9fea57e1"></a>
static <a class="el" href="class_t_file_browser_view.html">TFileBrowserView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a1f94c0b068922e310cadb73d9fea57e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41b5a448bf652dbea30623ac0e78238d"><td class="memItemLeft" align="right" valign="top"><a id="a41b5a448bf652dbea30623ac0e78238d"></a>
static <a class="el" href="class_t_file_browser_view.html">TFileBrowserView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a41b5a448bf652dbea30623ac0e78238d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d9e4864c0b2543988f42336e177e734"><td class="memItemLeft" align="right" valign="top"><a id="a3d9e4864c0b2543988f42336e177e734"></a>
static <a class="el" href="class_t_file_browser_view.html">TFileBrowserView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a3d9e4864c0b2543988f42336e177e734"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a377ea8c7b593a8726f7e05598c97ab2a"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_file_browser_view.html#a377ea8c7b593a8726f7e05598c97ab2a">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a377ea8c7b593a8726f7e05598c97ab2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>文件管理/浏览/选择控件。</p>
<p>file_browser_view_t是widget\_t的子类控件，widget_t的函数均适用于file_browser_view_t控件。</p>
<p>考虑到文件浏览器界面呈现的多样性，界面呈现工作完全有子控件来完成。</p>
<p>file_browser_view_t负责关联文件/文件夹数据到子控件上，子控件需要特定的规范命名。</p>
<p>名为 "cwd" 的子控件用于显示当前路径。</p>
<p>名为 "selected_file" 的子控件用于显示当前选择的文件。</p>
<p>名为 "file" 的子控件用于显示文件项的模板控件。</p>
<p>名为 "folder" 的子控件用于显示文件夹项的模板控件。</p>
<p>名为 "return_up" 的子控件用于返回上一级文件夹的模板控件。</p>
<p>名为 "container" 的子控件为容器控件，通常是scrollview。</p>
<p>名为 "name" 的子控件用于显示文件和文件夹的名称(放在列表项目内)。</p>
<p>名为 "size" 的子控件用于显示文件和文件夹的大小(放在列表项目内)。</p>
<p>名为 "mtime" 的子控件用于显示文件和文件夹的修改时间(放在列表项目内)。</p>
<p>名为 "ctime" 的子控件用于显示文件和文件夹的创建时间(放在列表项目内)。</p>
<p>名为 "icon" 的子控件用于显示文件和文件夹的图标(放在列表项目内)。</p>
<p>类型为 "check_button" 的子控件用于选择(放在列表项目内)。</p>
<p>完整示例请参考：</p>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/file_chooser_for_open.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/file_chooser_for_open.xml</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a377ea8c7b593a8726f7e05598c97ab2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a377ea8c7b593a8726f7e05598c97ab2a">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TFileBrowserView::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建file_browser_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a45768c7bf22e185896ec874102364c84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45768c7bf22e185896ec874102364c84">&#9670;&nbsp;</a></span>CreateDir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::CreateDir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>在当前文件夹创建子文件夹。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>子文件夹名。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab02f1afd2a0cf3badba9cbc80bd5d2c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab02f1afd2a0cf3badba9cbc80bd5d2c4">&#9670;&nbsp;</a></span>CreateFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::CreateFile </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>在当前文件夹创建文件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>文件名。 </td></tr>
    <tr><td class="paramname">data</td><td>数据。 </td></tr>
    <tr><td class="paramname">size</td><td>数据长度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa03787dca05899121b10f66777e4b042"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa03787dca05899121b10f66777e4b042">&#9670;&nbsp;</a></span>GetCwd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TFileBrowserView::GetCwd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取当前路径。</p>
<dl class="section return"><dt>返回</dt><dd>返回当前路径。 </dd></dl>

</div>
</div>
<a id="a37420c4fb0868aab3b5a52083810cb4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37420c4fb0868aab3b5a52083810cb4f">&#9670;&nbsp;</a></span>GetIgnoreHiddenFiles()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TFileBrowserView::GetIgnoreHiddenFiles </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否忽略隐藏文件。 </p>

</div>
</div>
<a id="ad76f7e533834b4760486b6079156f11d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad76f7e533834b4760486b6079156f11d">&#9670;&nbsp;</a></span>GetInitDir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TFileBrowserView::GetInitDir </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>初始文件夹。 </p>

</div>
</div>
<a id="a6e3be8209ebecb627b29fad0a08b3333"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e3be8209ebecb627b29fad0a08b3333">&#9670;&nbsp;</a></span>GetShowCheckButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TFileBrowserView::GetShowCheckButton </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否显示checkbutton。 </p>

</div>
</div>
<a id="a78caecfce2f36376f3f0c32a6d955a46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78caecfce2f36376f3f0c32a6d955a46">&#9670;&nbsp;</a></span>GetSortAscending()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TFileBrowserView::GetSortAscending </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否为升序排序。 </p>

</div>
</div>
<a id="ae779d729f721ecbb669e2fa586cf8e30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae779d729f721ecbb669e2fa586cf8e30">&#9670;&nbsp;</a></span>GetSortBy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TFileBrowserView::GetSortBy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>排序方式。可选值(name, size, mtime, type)。 </p>

</div>
</div>
<a id="adf91400cfd209ea48aad1980ddef24fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf91400cfd209ea48aad1980ddef24fb">&#9670;&nbsp;</a></span>SetIgnoreHiddenFiles()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::SetIgnoreHiddenFiles </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ignore_hidden_files</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 忽略隐藏文件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ignore_hidden_files</td><td>忽略隐藏文件。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a90d187486f99ed784c28508028f5b1bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90d187486f99ed784c28508028f5b1bc">&#9670;&nbsp;</a></span>SetInitDir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::SetInitDir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>init_dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 初始文件夹。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">init_dir</td><td>初始文件夹。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6f1fd3fa83864863e27fc96532665711"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f1fd3fa83864863e27fc96532665711">&#9670;&nbsp;</a></span>SetShowCheckButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::SetShowCheckButton </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>show_check_button</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 是否显示checkbutton。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_check_button</td><td>是否显示checkbutton。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7781f1882bd56bbd0f6bfe239758cce3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7781f1882bd56bbd0f6bfe239758cce3">&#9670;&nbsp;</a></span>SetSortAscending()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::SetSortAscending </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sort_ascending</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 是否为升序排序。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sort_ascending</td><td>是否为升序排序。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aeba1a400fab8dbfad03a8e528b38fb14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeba1a400fab8dbfad03a8e528b38fb14">&#9670;&nbsp;</a></span>SetSortBy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TFileBrowserView::SetSortBy </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>sort_by</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置 排序方式。可选值(name, size, mtime, type)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sort_by</td><td>排序方式。可选值(name, size, mtime, type)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
